#ifndef QTHEMEMODEL_H
#define QTHEMEMODEL_H

#include <QFileSystemModel>

class QThemeModel : public QFileSystemModel
{
    Q_OBJECT
public:
    QThemeModel(const QString &projectPath = "", QObject *parent = 0);

    /*! \brief This method checks if the project path
     *         point to a valid KDE theme directory.
     */
    bool isValid();

    QModelIndex setRootPath(const QString &path);

    /*! \brief A statis method to test if the given
     *         path directory respects the structure
     *         of a KDE Theme.
     */
    static bool isValid(const QString &projectPath);

signals:

public slots:

private:
    QString m_projectPath;
};

#endif // QTHEMEMODEL_H
